package com.raulraja.util.deployment.impl;

import org.apache.log4j.Logger;

/**
 * Demonstrates how values of properties are injected based on a specific hostname config
 */
public class SampleServiceImpl {

	private final static Logger log = Logger.getLogger(SampleServiceImpl.class);

	/**
	 * the first prperty
	 */
	private String firstProperty;

	/**
	 * the second property
	 */
	private String secondProperty;

	/**
	 * service initialization method
	 */
	public void init() {
		log.debug("first property: " + firstProperty);
		log.debug("second property: " + secondProperty);
	}

	/**
	 * sets the first property
	 * @param firstProperty the first property
	 */
	public void setFirstProperty(String firstProperty) {
		this.firstProperty = firstProperty;
	}

	/**
	 * sets the second property
	 * @param secondProperty the second property
	 */
	public void setSecondProperty(String secondProperty) {
		this.secondProperty = secondProperty;
	}
}
